<?php

namespace Home\Controller;

use Home\Event\ThirdAbstractEvent;
use Home\Dto\BaseDto;
/**
* 
*/
class ThirdserviceController extends HomeController
{

    public function share($channel) {
        $event = ThirdAbstractEvent::instance($channel);
        $BaseDto = new BaseDto();
        $BaseDto->id = I('id', 0, 'intval');
        $BaseDto->uid = UID;

        $res = $event->share($BaseDto);
        echo $res ?: $event->error;
    }
}